import { request } from '../plugins/axios.js';

/**
 * 权限列表
 * @param {string} type "list"|"tree", default "list"
 */
export function list(type = 'list') {
  return request({
    method: 'GET',
    url: `rights/${type}`,
  });
}
